<?php
class Pay_record_model extends CI_Model
{
    private $table = 'pay_record';
    
    public function findByPayId($payId)
    {
        $this->db->where('pay_id', $payId);
        return $this->db->get($this->table);
    }
}